{% extends  "warehouse/base.html" %}
{% load erpdata %}
 {% load paginator %}
{% load static %}

{% block title %}
<title>{{title}}-smallerp</title>
 
{% endblock %}

{% block contents %}

<div class="box_o " >
	<div class="rb_1">
	</div>
	<div class="rb_2">
	</div>
	<div class="rb_3">
	</div>
	<div class="rb">
		<h4> 物品及库存  </h4>
		  
		 <div class="box_i " >
			<div class="fright">					 
			</div>			 
			<img src="{% get_static_prefix %}stickies.ico"   width="16px" border="0">
			  &nbsp; 			  
			<hr>
			<table class="zebra-table">
				<tr class="even">
					<th>编号</th>
					<th>名称</th>
					<th>条码</th>
					<th>规格</th>
					<th>计量单位</th>
					<th>有效期</th>
					<th>参考价</th>
					<th>分类</th>
					<th>库存</th>
					<th>操作</th>
				</tr>
				{% for item in commodity %}
				<tr class="{% cycle 'odd' 'even' %}">
					<td>{{ item.id }}</td>
					<td>{{ item.Com_Name }}</td>
					<td>{{ item.Com_BarCode }}</td>
					<td>{{ item.Com_SPEC }}</td>
					<td>{{ item.Com_Unit }}</td>
					<td>{{ item.Com_Expire }}</td>
					<td>{{ item.Com_Price }}</td>
					<td>{{ item.Com_Category }}</td>
					<td>{{ item.Stock }}</td>
					<td><a class="p" href="{{current_url}}{{ item.id }}/buyhistory">购买历史</a></td>
				</tr>
				{% endfor %}
				{% if show_pager %}
				<tr class='even'>
					<td class="hf" colspan="10" align="left"> 
					{% paginator queryparam 3 %}
					</td>
				</tr>
				{% endif %}
				
			</table>
		</div>
		<H4><a class="fright" href="{{current_url}}" class="p">
					&nbsp;</a>&nbsp;&nbsp;</h4></H4>
	</div>
	<div class="rb_4">
	</div>
	<div class="rb_5">
	</div>
	<div class="rb_1">
	</div>
</div>
{% endblock %}